﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Move : MonoBehaviour {
    public GameObject GameCtrl;
    private float Speed;
	void Start () {
        Speed = GameCtrl.GetComponent<GameCtrl>().MoveSpeed;
	}
	
	void Update () {
        transform.Translate(new Vector2(-Speed * Time.deltaTime, 0));

	}
}
